<?
$top_menu = getArray('xteam_category','status=1 AND top_menu=1 AND parent_id='.$getpro['id'],NULL,'sort');
?>
<ul id="menu-header-menu" class="ddsmoothmenu">
    <li>
        <a href="<?=$curHost?>trang-chu.html" class="first <? if($pages=='home' || $pages==''){?>active<? }?>">
        	<span class="l"></span><span class="r"></span><span class="t"><?=_HOME?></span>
        </a>
    </li>
    
    <li>
    	<a rel="nofollow" href="<?=$curHost?>gioi-thieu.html" <? if($pages=='intro'){?>class="active"<? }?>>
			<span class="l"></span><span class="r"></span><span class="t"><?=_INTRO?></span>
        </a>
    </li>
    <?php
	$MenuPage = "2/";
	$arrMenu = getArray('xteam_category','status=1 AND parent_id=1');
	if(!empty($arrMenu)){
		foreach($arrMenu as $item){
			$Seokey = $item['seo_key']!='' ? utf8_to_ascii($item['seo_key']) : utf8_to_ascii($item['name']);
			$link = $curHost.str_replace(array('--','--'), '-', utf8_to_ascii($item['name']))."/".$Seokey.'/'.$MenuPage.$item['id'].".html";?>
			<li><a href="<?=$link?>"><?=$item['name']?></a>
		<?php
        }
	}
	?>
    <? //echo Draw_Menu($top_menu,"product");?>
    <!--<li>
        <a href="<?=$curHost.utf8_to_ascii($getnews['name'])?>/<?=utf8_to_ascii($getnews['seo_key']!=''?$getnews['seo_key']:$getnews['name'])?>/6/<?=$getnews['id']?>.html"><?=$getnews['name']?></a>
        <ul>
        
            <? //echo Draw_Menu($cat_news,"news");?>
        </ul>
    </li>-->
    <li>
    	<a rel="nofollow" href="<?=$curHost?>lien-he.html" class="last <? if($pages=='contact'){?>active<? }?>">
        	<span class="l"></span><span class="r"></span><span class="t"><?=_CONTACT?></span>
        </a>
    </li>
        
</ul>
